import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
		bingstate:false,
		loginstate:true,
		userdata:undefined // 用户信息
  },
  mutations: {
		onbingstate(state,bingstate){ // 绑定状态
		    state.bingstate = bingstate
		},
		onloginstate(state,loginstate){ // 登录状态
		    state.loginstate = loginstate
		},
		onuserdata(state,loginstate){ // 用户信息
		    state.userdata = loginstate
		},
  },
  actions: {
   
  },
  getters:{
  
  },
  modules: {
  }
})
